﻿using LeRenard.Core.Numbers;
using Xunit;

namespace LeRenard.Core.Tests.Numbers
{
    public class RandomInt32RangeCyclerTests
    {
        [Fact]
        public void Current_Returns_Correct_Value()
        {
            // Arrange
            var range = new Int32Range(0, 9);
            var sut = new RandomInt32RangeCycler(range);

            // Act
            var expected = sut.Next();
            var actual = sut.Current;

            // Assert
            Assert.Equal(expected, actual);
        }
    }
}
